<?php
    $book = $_POST['book'];
    $ourFileName = "testFile.html";
    $ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
    fwrite($ourFileHandle, $book);
    fclose($ourFileHandle);
    header("Location: index1.php");
?>